//
//  MDHomeViewController.m
//  MvvmDemo
//
//  Created by 吴伟城 on 2018/12/16.
//  Copyright © 2018 吴伟城. All rights reserved.
//

#import "MDHomeViewController.h"
#import "MDHomeViewModel.h"

@interface MDHomeViewController ()

@property (weak, nonatomic) id<MDHomeViewControllerDelegate> delegate;
@property (strong, nonatomic) MDHomeViewModel *viewModel;

@end

@implementation MDHomeViewController

- (instancetype)initWithDelegate:(id<MDHomeViewControllerDelegate>)delegate {
  if (self = [self init]) {
    _delegate = delegate;
  }
  return self;
}

- (void)viewDidLoad {
  [super viewDidLoad];
  [self makeUI];
  
  self.viewModel = [[MDHomeViewModel alloc] init];
  // TODO:
}

- (void)makeUI {
  self.title = @"Home";
  self.navigationController.navigationBarHidden = NO;
  self.navigationItem.hidesBackButton = YES;
}

@end
